Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / Application-Defined Functions
/


MyResizeRequest

Handles a request to change the size of a frame. This is how you would define your frame resize function if you were to name it MyResizeRequest:

Boolean MyResizeRequest (
                     JMFrameRef frame, 
                     Rect* newBounds);
frame
The frame to be resized.
newBounds
A pointer to the new desired dimensions of the frame.
function result
True if the frame can be resized to the requested dimensions.
DISCUSSION
When creating a frame, you must designate a callback function to resize the frame if necessary. The function can refuse the resize request or adjust the frame size to something other than the requested dimensions. If your function sets a new frame size, you can modify the value of the newBounds parameter to reflect the new dimensions.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997